package com.u2framework.lib.tool.exp.table.bean;

import java.math.BigInteger;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;


/**
 * 数据库表的数据字典描述信息。
 *
 * @author SultansOfSwing & MaYue
 */
public class ColumnDescBean {
    @JsonIgnore
    private String schema;
    @JsonIgnore
    private String table;
    @JsonIgnore
    private String tableComment;
    
    @JSONField(name = "propertyNo", ordinal = 1)
    private String propertyNo;
    @JSONField(name = "propertyId", ordinal = 2)
    private String propertyId;
    @JSONField(name = "propertyName", ordinal = 3)
    private String propertyName;
    @JSONField(name = "dataType", ordinal = 4)
    private String dataType;
    @JSONField(name = "dataLength", ordinal = 5)
    private BigInteger dataLength;
    @JSONField(name = "dataPrecision", ordinal = 6)
    private Integer dataPrecision;
    @JSONField(name = "dataScale", ordinal = 7)
    private Integer dataScale;

    @JSONField(name = "isPrimaryKey", ordinal = 8)
    private Integer isPrimaryKey;
    @JSONField(name = "isNotNull", ordinal = 9)
    private Integer isNotNull;
    
    @JSONField(name = "defaultValue", ordinal = 10)
    private String defaultValue;

    /**
     * getPropertyNo
     * 
     * @return the propertyNo
     */
    public String getPropertyNo() {
        return propertyNo;
    }

    /**
     * setPropertyNo
     * 
     * @param propertyNo the propertyNo to set
     */
    public void setPropertyNo(String propertyNo) {
        this.propertyNo = propertyNo;
    }

    /**
     * getPropertyId
     * 
     * @return the propertyId
     */
    public String getPropertyId() {
        return propertyId;
    }

    /**
     * setPropertyId
     * 
     * @param propertyId the propertyId to set
     */
    public void setPropertyId(String propertyId) {
        this.propertyId = propertyId;
    }

    /**
     * getPropertyName
     * 
     * @return the propertyName
     */
    public String getPropertyName() {
        return propertyName;
    }

    /**
     * setPropertyName
     * 
     * @param propertyName the propertyName to set
     */
    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    /**
     * getDataType
     * 
     * @return the dataType
     */
    public String getDataType() {
        return dataType;
    }

    /**
     * setDataType
     * 
     * @param dataType the dataType to set
     */
    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    /**
     * getDataLength
     * 
     * @return the dataLength
     */
    public BigInteger getDataLength() {
        return dataLength;
    }

    /**
     * setDataLength
     * 
     * @param dataLength the dataLength to set
     */
    public void setDataLength(BigInteger dataLength) {
        this.dataLength = dataLength;
    }

    /**
     * getDataPrecision
     * 
     * @return the dataPrecision
     */
    public Integer getDataPrecision() {
        return dataPrecision;
    }

    /**
     * setDataPrecision
     * 
     * @param dataPrecision the dataPrecision to set
     */
    public void setDataPrecision(Integer dataPrecision) {
        this.dataPrecision = dataPrecision;
    }

    /**
     * getDataScale
     * 
     * @return the dataScale
     */
    public Integer getDataScale() {
        return dataScale;
    }

    /**
     * setDataScale
     * 
     * @param dataScale the dataScale to set
     */
    public void setDataScale(Integer dataScale) {
        this.dataScale = dataScale;
    }

    /**
     * getIsPrimaryKey
     * 
     * @return the isPrimaryKey
     */
    public Integer getIsPrimaryKey() {
        return isPrimaryKey;
    }

    /**
     * setIsPrimaryKey
     * 
     * @param isPrimaryKey the isPrimaryKey to set
     */
    public void setIsPrimaryKey(Integer isPrimaryKey) {
        this.isPrimaryKey = isPrimaryKey;
    }

    /**
     * getIsNotNull
     * 
     * @return the isNotNull
     */
    public Integer getIsNotNull() {
        return isNotNull;
    }

    /**
     * setIsNotNull
     * 
     * @param isNotNull the isNotNull to set
     */
    public void setIsNotNull(Integer isNotNull) {
        this.isNotNull = isNotNull;
    }

    /**
     * getDefaultValue
     * 
     * @return the defaultValue
     */
    public String getDefaultValue() {
        return defaultValue;
    }

    /**
     * setDefaultValue
     * 
     * @param defaultValue the defaultValue to set
     */
    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }
    
    /**
     * getSchema
     * 
     * @return the schema
     */
    public String getSchema() {
        return schema;
    }
    /**
     * setSchema
     * 
     * @param schema the schema to set
     */
    public void setSchema(String schema) {
        this.schema = schema;
    }
    /**
     * getTable
     * 
     * @return the table
     */
    public String getTable() {
        return table;
    }
    /**
     * setTable
     * 
     * @param table the table to set
     */
    public void setTable(String table) {
        this.table = table;
    }
    /**
     * getTableComment
     * 
     * @return the tableComment
     */
    public String getTableComment() {
        return tableComment;
    }
    /**
     * setTableComment
     * 
     * @param tableComment the tableComment to set
     */
    public void setTableComment(String tableComment) {
        this.tableComment = tableComment;
    }
}
